<?php
require('lib/verify.php');
require('lib/has_char.php');
require('lib/is_approved.php');
require('lib/is_admin.php');

$_category = "warmath";
$_title = "Admin / Remove Loot";

$credit_id = $_GET["cid"];
$character_id = $_GET["pid"];
$item_id = $_GET["id"];
$system_id = $system["system_id"];
$loot_id = $_GET["lid"];

$sql = "delete from wm_loots where loot_system_id = $system_id and loot_character = $character_id and loot_credit = $credit_id and loot_id = $loot_id and loot_item = $item_id limit 1";
$result = $db->query($sql);
//echo $sql;

//reprocessDKP($db, $system["system_id"]);

header("Location: credit.php?id=$credit_id");
?>

